import api from "../utils/request";
const baseUrl = "/api/api/sys/msgPublish";
export function getMsgPublishList(query) {
  return api.post(`${baseUrl}/list`, query);
}

export function addOrUpd(addOrUpd) {
  return api.post(`${baseUrl}/addOrUpd`, addOrUpd);
}

export function del(id) {
  return api.delete(`${baseUrl}/del`, {
    params: {
      id: id,
    },
  });
}

export function sendAgain(id, userIds) {
  return api.get(`${baseUrl}/sendAgain`, {
    params: {
      id: id,
      userIds: userIds,
    },
  });
}

export function findById(id) {
  return api.get(`${baseUrl}/findById`, {
    params: {
      id: id,
    },
  });
}